Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message when misusing protected Node._shallowClone method #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chances
Copy link

@chances chances commented Aug 9, 2024

No description provided.

@b-fuze
Copy link
Owner

b-fuze commented Aug 15, 2024

I'm not opposed to merging this but ideally there would be a way to prevent people from using these private methods to begin with. I should be using private in TypeScript but that makes certain things a pain, aside from that I was hoping that having an underscore would discourage people from using them...

What probably needs to happen is that I need to either remove them from the public API type information or just refactor them as utility functions...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants